package com.ys.entity.finance;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_FinancialTransactionTypeItem", catalog="Id")
public class TcwFinancialTransactionTypeItem extends BaseEntity<TcwFinancialTransactionTypeItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Vid", nameJava="vid", typeDataBase="varchar")
	private String vid;
	@YsField(nameDataBase="Vname", nameJava="vname", typeDataBase="varchar")
	private String vname;
	@YsField(nameDataBase="Vaccountname", nameJava="vaccountname", typeDataBase="varchar")
	private String vaccountname;
	@YsField(nameDataBase="Vremark", nameJava="vremark", typeDataBase="varchar")
	private String vremark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwFinancialTransactionTypeItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TcwFinancialTransactionTypeItem setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getVid() {
		return vid;
	}
	public TcwFinancialTransactionTypeItem setVid(String vid) {
		this.vid = vid;
		return this;
	}
	public String getVname() {
		return vname;
	}
	public TcwFinancialTransactionTypeItem setVname(String vname) {
		this.vname = vname;
		return this;
	}
	public String getVaccountname() {
		return vaccountname;
	}
	public TcwFinancialTransactionTypeItem setVaccountname(String vaccountname) {
		this.vaccountname = vaccountname;
		return this;
	}
	public String getVremark() {
		return vremark;
	}
	public TcwFinancialTransactionTypeItem setVremark(String vremark) {
		this.vremark = vremark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwFinancialTransactionTypeItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwFinancialTransactionTypeItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwFinancialTransactionTypeItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwFinancialTransactionTypeItem tcwFinancialTransactionTypeItem(
		Long pid,
		String vid,
		String vname,
		String vaccountname,
		String vremark,
		Integer status
			) {
		TcwFinancialTransactionTypeItem entity = new TcwFinancialTransactionTypeItem();
		entity.setPid(pid);
		entity.setVid(vid);
		entity.setVname(vname);
		entity.setVaccountname(vaccountname);
		entity.setVremark(vremark);
		entity.setStatus(status);
		return entity;
	}
}